package com.mz.mattress.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mz.mattress.api.entity.CardBlack;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CardBlackMapper extends BaseMapper<CardBlack> {

    @Select("select count(*) from mz_card_black where card_id=#{cardId}")
    Integer selectCountByCardId(@Param("cardId") Integer cardId);

    @Select("select id from mz_card_black where card_id=#{cardId}")
    List<Integer> selectIdByCardId(@Param("cardId") Integer cardId);

}
